package com.aim.util;

/**
 * Created with IntelliJ IDEA.
 * User: User
 * Date: 4/29/14
 * Time: 10:42 PM
 * To change this template use File | Settings | File Templates.
 */
public interface TimeGenerator {

    public long nextTime();

    public static class Const implements TimeGenerator {

        private long interval;

        public Const(long interval) {
            this.interval = interval;
        }

        @Override
        public long nextTime() {
            return interval;
        }
    }
}
